{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "249a0afa",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'geocodes': [{'formatted_address': '广东省广州市从化区',\n",
       "   'country': '中国',\n",
       "   'province': '广东省',\n",
       "   'citycode': '020',\n",
       "   'city': '广州市',\n",
       "   'district': '从化区',\n",
       "   'township': [],\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'adcode': '440117',\n",
       "   'street': [],\n",
       "   'number': [],\n",
       "   'location': '113.586605,23.548852',\n",
       "   'level': '区县'}]}"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# extensions = base\n",
    "# 1. 调用requests模块\n",
    "import requests\n",
    "\n",
    "# 2. 请求方法：GET\n",
    "\n",
    "# 3. URL地址：\n",
    "geo_url = \"https://restapi.amap.com/v3/geocode/geo?parameters\"\n",
    "\n",
    "# 4. 准备参数，用于交换数据 payload\n",
    "payload = {\n",
    "    \"key\":\"d8f8dec8d7c7b0d5cdcd9b273f65048d\",\n",
    "    \"address\":\"广东省广州市从化区\"\n",
    "}\n",
    "\n",
    "# 5. 发起请求\n",
    "r = requests.get(url=geo_url,params=payload)\n",
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "f2406c53",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'113.586605,23.548852'"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "广州南方学院_location = r.json()['geocodes'][0]['location']\n",
    "广州南方学院_location"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "c7022f12",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [], 'cities': []},\n",
       " 'count': '865',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': [],\n",
       "   'address': '新城东路与新城东路六巷交叉口北100米',\n",
       "   'distance': '0',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '正果云吞',\n",
       "   'location': '113.586602,23.548857',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFK1IMV4'},\n",
       "  {'parent': [],\n",
       "   'address': '新城东路与新城东路六巷交叉口北100米',\n",
       "   'distance': '1',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;特色/地方风味餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050118',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '粤',\n",
       "   'location': '113.586614,23.548861',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0IGK9OPB2'},\n",
       "  {'parent': [],\n",
       "   'address': '荔香村新城东路6-7',\n",
       "   'distance': '70',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '30.00',\n",
       "    'opentime2': '14:00-02:00',\n",
       "    'rating': '4.3',\n",
       "    'open_time': '14:00-02:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e16d2d7e1634d04e09715428fb3a0244'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '湘川小吃凉拌店',\n",
       "   'location': '113.587185,23.548505',\n",
       "   'tel': '13602211495',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFIXN322'},\n",
       "  {'parent': [],\n",
       "   'address': '新城中路顺秀楼顺丽楼西南侧',\n",
       "   'distance': '98',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '3.1',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '天桥美食',\n",
       "   'location': '113.585728,23.548493',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0G2AC735O'},\n",
       "  {'parent': [],\n",
       "   'address': '新城中路顺秀楼顺丽楼',\n",
       "   'distance': '99',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;外国餐厅;外国餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050200',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '进口牛排与海鱼',\n",
       "   'location': '113.585681,23.548557',\n",
       "   'tel': '15986441810',\n",
       "   'shopid': [],\n",
       "   'id': 'B0H2HAHOU2'},\n",
       "  {'parent': [],\n",
       "   'address': '荔香村(新城东路99号正东方向120米)',\n",
       "   'distance': '101',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '3.9',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2a5ae4fbcaf2a728e75556cf4790c9c4'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3d97f47ca89f81b4793fcd778877ac33'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/d2c50fceaec9b162ca8b2b51ffc52201'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '广振潮汕猪肚鸡汤饭',\n",
       "   'location': '113.587600,23.548869',\n",
       "   'tel': '13711932086',\n",
       "   'shopid': [],\n",
       "   'id': 'B0HRM5JFSM'},\n",
       "  {'parent': [],\n",
       "   'address': '街口街道新城东路荔香村6号之三',\n",
       "   'distance': '104',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '10.00',\n",
       "    'opentime2': [],\n",
       "    'rating': '4.3',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/83409de45d0db7ee38362e51374f4e01'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '柳州螺蛳粉(广百分店)',\n",
       "   'location': '113.587515,23.548360',\n",
       "   'tel': '18177382828',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFG2JO93'},\n",
       "  {'parent': [],\n",
       "   'address': '街口街新城中路7号',\n",
       "   'distance': '106',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/36fb9046b2c447f9a2b23b01b9acda09'}],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '家如粥店',\n",
       "   'location': '113.585629,23.548526',\n",
       "   'tel': '18520536358',\n",
       "   'shopid': [],\n",
       "   'id': 'B0HK9ZYORK'},\n",
       "  {'parent': [],\n",
       "   'address': '街口街新城东路荔香村6号之二',\n",
       "   'distance': '109',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '24.00',\n",
       "    'opentime2': [],\n",
       "    'rating': '3.7',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;潮州菜',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/4c33c0d88f93d849d0129844b4049660'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a206044d35e89b1149d314b691bb144d'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/124c772bb846e6847f647b85047de79c'}],\n",
       "   'typecode': '050123',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '潮味记粉面世家',\n",
       "   'location': '113.587471,23.548249',\n",
       "   'tel': '13539995198',\n",
       "   'shopid': [],\n",
       "   'id': 'B0H3FXETGF'},\n",
       "  {'parent': [],\n",
       "   'address': '街口街东成路荔香邨二期首层A3号',\n",
       "   'distance': '111',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '13.00',\n",
       "    'opentime2': [],\n",
       "    'rating': '4.2',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;四川菜(川菜)|餐饮服务;中餐厅;特色/地方风味餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5faacebc57dccaa231afc696f8f80573'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/55b5b6ffa31058fe016b402f'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3ffd1b5e4b610e5665e94ed27bf22a36'}],\n",
       "   'typecode': '050102|050118',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '八哥酸辣粉(荔香村店)',\n",
       "   'location': '113.587494,23.548412',\n",
       "   'tel': '18802055089',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFF3UW5J'},\n",
       "  {'parent': [],\n",
       "   'address': '新东城路荔香村5-10号',\n",
       "   'distance': '111',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '08:00-20:00',\n",
       "    'rating': '3.8',\n",
       "    'open_time': '08:00-20:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '和气美食快餐店',\n",
       "   'location': '113.587683,23.548690',\n",
       "   'tel': '13533118241',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFLAGSEB'},\n",
       "  {'parent': [],\n",
       "   'address': '新城东路荔香村5-9',\n",
       "   'distance': '112',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '哈喽窖鸡',\n",
       "   'location': '113.587689,23.548673',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFL7ENDF'},\n",
       "  {'parent': [],\n",
       "   'address': '从化街口街新城东路荔香村10栋107国美电器附近',\n",
       "   'distance': '114',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '43.00',\n",
       "    'opentime2': '10:30-22:00',\n",
       "    'rating': '4.1',\n",
       "    'open_time': '10:30-22:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;外国餐厅;日本料理',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/6be6ef5f19ccac45931cde95c4a288e9'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/12b38c969947629f771995b283a99c46'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/294c3cb010f59105eea0c9777347af52'}],\n",
       "   'typecode': '050202',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '秋田菊日本料理(从化街口)',\n",
       "   'location': '113.587590,23.548352',\n",
       "   'tel': '13602412074',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFGEXMC2'},\n",
       "  {'parent': [],\n",
       "   'address': '街口街新城东路荔香邨1-108铺',\n",
       "   'distance': '124',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '3.7',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '壹姐撸串特色小吃',\n",
       "   'location': '113.587713,23.548377',\n",
       "   'tel': '13798018161',\n",
       "   'shopid': [],\n",
       "   'id': 'B0H1HMRF79'},\n",
       "  {'parent': [],\n",
       "   'address': '街口街新城东路荔香村4栋104、107号',\n",
       "   'distance': '125',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '42.00',\n",
       "    'opentime2': [],\n",
       "    'rating': '4.4',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;外国餐厅;日本料理',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0699b691b6782ab1e77ac63b18c3cb2e'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/26128531cd5576a8c82aefcd88613376'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0b45ff74ea5735aa8fb09204162611e4'}],\n",
       "   'typecode': '050202',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '秋田菊日本料理',\n",
       "   'location': '113.587545,23.548348',\n",
       "   'tel': '13602412074',\n",
       "   'shopid': [],\n",
       "   'id': 'B00141KB1H'},\n",
       "  {'parent': 'B0FFF3UNTN',\n",
       "   'address': '新城东路80-7号(区政府对面)',\n",
       "   'distance': '130',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '3.2',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;外国餐厅;日本料理',\n",
       "   'photos': [],\n",
       "   'typecode': '050202',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '202',\n",
       "   'adname': '从化区',\n",
       "   'name': 'Myhome麦禾寿司(凤仪东路店)',\n",
       "   'location': '113.585948,23.547843',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0H61YNTXW'},\n",
       "  {'parent': [],\n",
       "   'address': '新城东路富逸华庭',\n",
       "   'distance': '138',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '3.9',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '李大叔南昌拌粉(从化店)',\n",
       "   'location': '113.585869,23.547811',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0H0VZY2C6'},\n",
       "  {'parent': [],\n",
       "   'address': '街口街龙聚里1号之一',\n",
       "   'distance': '150',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '3.7',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '饭特兮烤肉拌饭',\n",
       "   'location': '113.585170,23.549166',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFIOVGIF'},\n",
       "  {'parent': [],\n",
       "   'address': '城东路34号',\n",
       "   'distance': '153',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '16.00',\n",
       "    'opentime2': [],\n",
       "    'rating': '4.0',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c260bf3166894ecd93ad806ae5ad8047'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9b2797988a7b36a69d8b3f6a39594ede'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '家和早餐店(新城中路)',\n",
       "   'location': '113.585129,23.548606',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B00141QZM2'},\n",
       "  {'parent': [],\n",
       "   'address': '街口街道新城中路30号',\n",
       "   'distance': '154',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '每天10:30-02:00；每天16:30-22:00',\n",
       "    'rating': '3.6',\n",
       "    'open_time': '10:30-02:00 16:30-22:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3d91101df5f781b88fe60ae0c26d9a4b'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/54eb6aa0385ec74d5c5157e322b25a90'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c4400ce2225b5fc0fcbb484d0728a885'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '陈俊蒸饭炖汤',\n",
       "   'location': '113.585105,23.548675',\n",
       "   'tel': '13825027884',\n",
       "   'shopid': [],\n",
       "   'id': 'B0H0VH2LC7'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# extensions = base\n",
    "# 1. 调用requests模块\n",
    "import requests\n",
    "\n",
    "# 2. 请求方法：GET\n",
    "\n",
    "# 3. URL地址：\n",
    "geo_url = \"https://restapi.amap.com/v3/place/around?parameters\"\n",
    "\n",
    "# 4. 准备参数，用于交换数据 payload\n",
    "payload = {\n",
    "    \"key\":\"d8f8dec8d7c7b0d5cdcd9b273f65048d\",\n",
    "    \"location\":广州南方学院_location,\n",
    "    \"keywords\":\"美食\"\n",
    "}\n",
    "\n",
    "# 5. 发起请求\n",
    "r = requests.get(url=geo_url,params=payload)\n",
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "12d19c87",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [], 'cities': []},\n",
       " 'count': '861',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': [],\n",
       "   'address': '新城中路与新村路交叉口东40米',\n",
       "   'distance': '175',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '4.1',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;潮州菜',\n",
       "   'photos': [],\n",
       "   'typecode': '050123',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '永记隆江猪脚饭',\n",
       "   'location': '113.584993,23.549407',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0H1D7O6EP'},\n",
       "  {'parent': [],\n",
       "   'address': '新城东七巷富逸华庭',\n",
       "   'distance': '178',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '3.1',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '花知味',\n",
       "   'location': '113.586153,23.547361',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0HBKKPB8C'},\n",
       "  {'parent': [],\n",
       "   'address': '西宁横街98号2层(荔香邨路口近广百)',\n",
       "   'distance': '179',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '32.00',\n",
       "    'opentime2': [],\n",
       "    'rating': '4.1',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;火锅店',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/05ccc234ad30cee5acdb0c3ed91f8262'},\n",
       "    {'title': [],\n",
       "     'url': 'https://img.alicdn.com/imgextra/i1/3695320962/O1CN011IydfrKnFbSVCWT_!!3695320962-0-kbcontentapng.jpg'},\n",
       "    {'title': [],\n",
       "     'url': 'https://img.alicdn.com/imgextra/i2/3695320962/O1CN011IydfrKnFbWkWO8_!!3695320962-0-kbcontentapng.jpg'}],\n",
       "   'typecode': '050117',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '小盛都火锅(街口店)',\n",
       "   'location': '113.588295,23.548590',\n",
       "   'tel': '18620473181',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFIBJU3W'},\n",
       "  {'parent': [],\n",
       "   'address': '新城东路68号林苑大厦3层',\n",
       "   'distance': '202',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '45.00',\n",
       "    'opentime2': '09:30-02:00',\n",
       "    'rating': '4.6',\n",
       "    'open_time': '09:30-02:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;广东菜(粤菜)',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5072e6f9805ba4eaaa5f19201addf35f'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/06d05305f6a12cb20fe0df9f459e5f6b'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/04699c713d957285e6fdb2735cd69739'}],\n",
       "   'typecode': '050103',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '大饱口福(明朗店)',\n",
       "   'location': '113.588012,23.547651',\n",
       "   'tel': '020-37508088',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFFVL3KC'},\n",
       "  {'parent': [],\n",
       "   'address': '青云里一巷四号',\n",
       "   'distance': '217',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '周一至周日:08:25-22:30',\n",
       "    'rating': '4.0',\n",
       "    'open_time': '08:25-22:30',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/4c2b9ab2b680311d85fe6ae05006437b'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '火记店',\n",
       "   'location': '113.584519,23.548472',\n",
       "   'tel': '19880831828',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFLPSUDB'},\n",
       "  {'parent': [],\n",
       "   'address': '府前路10号',\n",
       "   'distance': '220',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '07:00-22:00',\n",
       "    'rating': '4.1',\n",
       "    'open_time': '07:00-22:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/00cd1299fe31034597ecf562a457fca7'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/32500ab827cc91ec37b0e984f741463b'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/517354dedd8738729ae88fa1aced580c'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '樊易林府前茶市分店',\n",
       "   'location': '113.587792,23.547201',\n",
       "   'tel': '020-37501865',\n",
       "   'shopid': [],\n",
       "   'id': 'B0GKKZXB63'},\n",
       "  {'parent': [],\n",
       "   'address': '新村路83号盛世教育',\n",
       "   'distance': '228',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '4.2',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;四川菜(川菜)',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c0cd304777aa45088f1dc1d154848507'}],\n",
       "   'typecode': '050102',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '阿标串串香',\n",
       "   'location': '113.585004,23.550293',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFH905TE'},\n",
       "  {'parent': [],\n",
       "   'address': '街口街西宁横街4号202房自编之一',\n",
       "   'distance': '230',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '103.00',\n",
       "    'opentime2': '每天11:00-22:00',\n",
       "    'rating': '3.8',\n",
       "    'open_time': '11:00-22:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;火锅店',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1ee027c200fcf131a05bd04a7aa09d1b'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c5deb559cbb0e4e6e50d972154f3b997'}],\n",
       "   'typecode': '050117',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '川十三重庆民谣火锅',\n",
       "   'location': '113.587684,23.550666',\n",
       "   'tel': '18028032133',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFIXHFX3'},\n",
       "  {'parent': [],\n",
       "   'address': '开源路22号',\n",
       "   'distance': '231',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '10.00',\n",
       "    'opentime2': [],\n",
       "    'rating': '4.2',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5c6c372b9c4a7deb6a8dab5d88934257'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a68b315f1e14a73ed15c9264859aff67'},\n",
       "    {'title': [],\n",
       "     'url': 'https://img.alicdn.com/imgextra/i1/3695320962/O1CN01sjwRAa1Iydh0ugDcw_!!3695320962-0-kbcontentapng.jpg'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '嘬嘬螺·螺蛳粉',\n",
       "   'location': '113.586548,23.546774',\n",
       "   'tel': '18802032191',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFG6U8GM'},\n",
       "  {'parent': [],\n",
       "   'address': '开源路25号-3',\n",
       "   'distance': '231',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '周一至周日:06:00-20:00',\n",
       "    'rating': '4.3',\n",
       "    'open_time': '06:00-20:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/d2458cffe1bb8476ba7aa6b86929462e'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e95872f90aa9305d0415f9b57432a227'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3901ff54536f6306d74a9600756e3ebf'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '联兴小食店',\n",
       "   'location': '113.586703,23.546771',\n",
       "   'tel': '020-87927998',\n",
       "   'shopid': [],\n",
       "   'id': 'B00140MFCI'},\n",
       "  {'parent': [],\n",
       "   'address': '街口街开源路25号之一',\n",
       "   'distance': '235',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '4.2',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '鼎记无骨酸菜鱼',\n",
       "   'location': '113.586616,23.546741',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0HUACBN86'},\n",
       "  {'parent': [],\n",
       "   'address': '新城中路7O号',\n",
       "   'distance': '235',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '47.00',\n",
       "    'opentime2': [],\n",
       "    'rating': '4.3',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;特色/地方风味餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3dabb28fb9e23e0764d91673786ae38f'}],\n",
       "   'typecode': '050118',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '老四川九寨城石锅鱼(从化分店)',\n",
       "   'location': '113.584363,23.549599',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFGCC9AJ'},\n",
       "  {'parent': [],\n",
       "   'address': '城内路青云里西南侧',\n",
       "   'distance': '247',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '2.8',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '尚记美食',\n",
       "   'location': '113.584548,23.547681',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKW1YB2'},\n",
       "  {'parent': [],\n",
       "   'address': '西宁中路41号靠近舞韵舞蹈艺术培训部',\n",
       "   'distance': '248',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '11.00',\n",
       "    'opentime2': '09:00-21:00',\n",
       "    'rating': '4.1',\n",
       "    'open_time': '09:00-21:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/42e6b2adafa8820bf9e9f788a8c76366'},\n",
       "    {'title': '冰爽白云凤爪',\n",
       "     'url': 'https://img.alicdn.com/imgextra/i2/2206893038086/O1CN01UGYMx229bRB8y2epW_!!2206893038086-0-koubei.jpg'},\n",
       "    {'title': '百香果果香凤爪',\n",
       "     'url': 'https://img.alicdn.com/imgextra/i3/2206893038086/O1CN01p8Il5Q29bRB8fzjM5_!!2206893038086-0-koubei.jpg'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '芊红泡菜(西宁路店)',\n",
       "   'location': '113.588516,23.550240',\n",
       "   'tel': '15913151289',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFFWIM55'},\n",
       "  {'parent': [],\n",
       "   'address': '街口街道城内路31号',\n",
       "   'distance': '252',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '06:00-22:00',\n",
       "    'rating': '4.2',\n",
       "    'open_time': '06:00-22:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/80e8c451bd44349a28954e27a1ce1e63'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3649388a06a9b25c00373296f868813c'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/60ce4cee685e0d11e52da326ead4fcab'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '南昌拌粉',\n",
       "   'location': '113.584354,23.547901',\n",
       "   'tel': '19128210931',\n",
       "   'shopid': [],\n",
       "   'id': 'B0H2J7WDB2'},\n",
       "  {'parent': [],\n",
       "   'address': '街口街城内路35号',\n",
       "   'distance': '259',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '4.1',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0818491bbe646cc479835d887464761a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0fb6bf0de22e0c8ea1aec5d135c1c204'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e34c251e8b80989f4522d617b398fc30'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '鲜辣小厨(城内分店)',\n",
       "   'location': '113.584326,23.547915',\n",
       "   'tel': '13728023489',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G0TSFNHJ'},\n",
       "  {'parent': [],\n",
       "   'address': '西宁中路五巷从化商业幼儿园北侧约50米',\n",
       "   'distance': '260',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '鸿莉御品醉仙鸭',\n",
       "   'location': '113.586400,23.551182',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0H0ONVCLU'},\n",
       "  {'parent': [],\n",
       "   'address': '街口街开源路五巷11栋201',\n",
       "   'distance': '263',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '周一至周日:11:30-21:00',\n",
       "    'rating': [],\n",
       "    'open_time': '11:30-21:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/4024765ccc2d754d3136db3d16169d0d'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/425582628bdbb2cfebf0d978216ee60c'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '亮厨私房菜',\n",
       "   'location': '113.586212,23.546512',\n",
       "   'tel': '13668901980',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKP0F5F'},\n",
       "  {'parent': [],\n",
       "   'address': '荔香村永昌眼镜对面',\n",
       "   'distance': '267',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '3.2',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '美味阁(新城东路店)',\n",
       "   'location': '113.589077,23.548047',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFHCPDE6'},\n",
       "  {'parent': [],\n",
       "   'address': '西宁中路93号(即西街市场旁)',\n",
       "   'distance': '268',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '09:00-21:00',\n",
       "    'rating': '4.1',\n",
       "    'open_time': '09:00-21:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f7f13e8907f6dec732a5acf1d91a17e2'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/55b5b705a31058fe016b4215'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/fcb13908e78cb54a9372fd8c3b7d1826'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '宝华食店(村前路)',\n",
       "   'location': '113.588354,23.550648',\n",
       "   'tel': '13828437329',\n",
       "   'shopid': [],\n",
       "   'id': 'B00140H6MD'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# extensions = base\n",
    "# 1. 调用requests模块\n",
    "import requests\n",
    "\n",
    "# 2. 请求方法：GET\n",
    "\n",
    "# 3. URL地址：\n",
    "geo_url = \"https://restapi.amap.com/v3/place/around?parameters\"\n",
    "\n",
    "# 4. 准备参数，用于交换数据 payload\n",
    "payload = {\n",
    "    \"key\":\"d8f8dec8d7c7b0d5cdcd9b273f65048d\",\n",
    "    \"location\":广州南方学院_location,\n",
    "    \"types\":\"050100\",\n",
    "    'page':2\n",
    "}\n",
    "\n",
    "# 5. 发起请求\n",
    "r = requests.get(url=geo_url,params=payload)\n",
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "d94d889b",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
